//fonction boost



SDL_Surface *b[4] = {NULL};
/********initialisation du boost********/

b[0] = IMG_Load("Pic/boost1.jpg");
b[1] = IMG_Load("Pic/boost2.jpg");
b[2] = IMG_Load("Pic/boost3.jpg");
b[3] = IMG_Load ("Pic/coin.jpg");
positionBO.x = 250;
positionBO.y = 0 ;
for (r=0; r<=4; r++)
{
if(b[r] == NULL)    return EXIT_FAILURE;
SDL_SetColorKey(b[r], SDL_SRCCOLORKEY,SDL_MapRGB(b[r]->format,0,0,0));
}

BO = b[0];

/*********fin initialisation*********/
a=0;
x= checkcollision(positionImage, positionImage1); //collision voiture et boost
if (x==1)
{   
money= money+10 ;
x=0;
positionBO.x=250;
positionBO.y=0;
while (a<3)
{
if (a==2) { a=0;}
BO = b[a+1];
}


}
